﻿using RAP.Framework.Libary.DomTemplateBuilder.Attributes;
using RAP.Framework.Libary.DomTemplateBuilder.Handler.Conditional;
using RAP.Framework.Libary.Utils;

namespace RAP.Framework.Libary.DomTemplateBuilder.Element.Conditional
{
    /// <summary>
    /// 正则表达式匹配判断
    /// </summary>
    [TagHandler( typeof( RegexIsMatchHandler ) )]
    public class RegexIsMatch : ConditionalBase
    {
        /// <summary>
        /// 正则表达式
        /// </summary>
        public string Expression
        {
            get
            {
                return this.ToString ( "Expression" );
            }
        }
    }
}
